package com.john.market.interfaces;

import com.john.market.classes.Product;

/**
 * Buyer interface 
 *
 */
public interface IBuyer {
	/**
	 * Orders a product
	 * 
	 * @param product
	 * A product that buyer wants to buy
	
	 * @param count 
	 * Count of purchasing products
	 * 
	 * @return
	 * The number of remaining products
	 * 
	 */
	public int buyProduct(Product product, int count);
	
}
